package com.quanyan.common;

import org.junit.Test;

import java.io.UnsupportedEncodingException;

/**
 * ByteToString
 *
 * @author Tu Chun
 * @date 2016/9/9
 */
public class ByteToString {
    @Test
    public void test() throws UnsupportedEncodingException {
        byte[] PRIVATE_KEY = {80, -4, -2, -63, 76, -75, -62, 122, 72, 6, 9, 110, -55, -66, 2, -62};
        String srt2 = new String(PRIVATE_KEY, "UTF-8");
        //String srt3 = new String(PRIVATE_KEY, "ISO-8859-1");
        System.out.println("PRIVATE_KEY-str:"+srt2);
    }
}
